execute as @a if entity @s[nbt={Inventory:[{Slot:9b,id:"air"}]}]